*----------------------------------------------------------------------------------------------*
* The Majoritarian Threat to Liberal Democracy										           *
* Guy Grossman, Dorothy Kronick, Matt Levendusky, Marc Meredith                                *
* Corresponding author: Marc Meredith (marcmere@sas.upenn.edu)                                 *
* Last modification: 11/06/2020                                                                *
* Version of Stata: Stata MP 15.1 2-cores                                                      *
*----------------------------------------------------------------------------------------------*
* Additional programs needed:                                                                  *
* 1.) sencode (run "findit sencode")														   *
* 2.) fsum (run "findit fsum")				   												   *
* 3.) iebaltab (run "findit ietoolkit")														   *
* 4.) sutex (run "findit sutex")															   *
*----------------------------------------------------------------------------------------------*


/* Set the working directory */
cd "~/vermont/replication"  

/* Install required add-ons (if not already installed) */ 
ssc install fsum 
ssc install sutex
ssc install sencode 
ssc install ietoolkit 

/* Create master data */
do "code/1_Data_Cleaning.do"


/* Create tables in paper */
do "code/2_Table1.do"
do "code/2_Table2.do"
do "code/2_Table3.do"
do "code/2_Table4.do"
 
 
/* Create tables in appendix */
do "code/2_TableC1_TableC2.do"
do "code/2_TableC3_TableC6.do"


/* End */

